﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum ConsumeRatioState
    {
        /// <summary>
        /// 锁定的
        /// </summary>
        Locked=0,
        /// <summary>
        /// 正常
        /// </summary>
        Normal=1
    }


    public static class ConsumeRatioStateEx
    {
        public static string GetName(this ConsumeRatioState state)
        {
            switch (state)
            {
                case ConsumeRatioState.Locked:
                    return "禁用";
                case ConsumeRatioState.Normal:
                    return "可用";
                default:
                    throw new ArgumentOutOfRangeException("state");
            }
        }
    }
}
